//package com.example.SBootDemo.controller.api;
//
//import java.util.List;
//
//import javax.servlet.http.HttpServletRequest;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.example.SBootDemo.ExceptionHandel.exception.Myexception;
//import com.example.SBootDemo.model.function.user;
//import com.example.SBootDemo.service.Interface.function.userinterface;
//
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiImplicitParams;
//import io.swagger.annotations.ApiOperation;
//
//
//@Controller
//public class UserController1 {
//	
//	@Autowired
//	userinterface uservice;
//	
//	@RequestMapping("/Hello")
// public String returnHello() throws Myexception {
//	 
//	 throw new Myexception("wqejkcbxzjk");
// }
//	
//	/*@ApiOperation 对api添加详细信息:
//	 *                例如：@ApiOperation(value="得到用户", notes="得到User对象")
//     * 
//	 * @ApiImplicitParams 对参数注释  也可以单个使用@ApiImplicitParam
//	 */
//// @ApiOperation(value="获取用户详细信息", notes="根据url的id来获取用户详细信息")
//// @ApiImplicitParam(name = "id", value = "用户ID", required = true, dataType = "Long")
//// @RequestMapping(value="/getUser/{id}", method=RequestMethod.GET)
//// 
//// //@PathVariable 绑定类似  /getUser/{id} 中的id 到属性
//// public List<user> getUser(@PathVariable Long id) throws Myexception {
////	 return uservice.getUser();
////	 
//// }
//// 
// 
// 
// @ApiOperation(value="创建用户", notes="根据User对象创建用户")
// @ApiImplicitParam(name = "user", value = "用户详细实体user", required = true, dataType = "user")
// @RequestMapping(value="/addUser", method=RequestMethod.POST)
// public String postUser(@RequestBody user user) {
//     
//     return "success";
// }
// 
// 
//	@RequestMapping(value="/index")
//	
//	public String getIndex(HttpServletRequest request){
//		
//		 request.setAttribute("key", "hello world");  
//	        return "/index";  
//	}
//	
//@RequestMapping(value="/b")
//	
//	public String getb(HttpServletRequest request){
//		
//		 request.setAttribute("key", "b页面");  
//	        return "b";  
//	}
//	
//
//}
